package com.team11.server.controller.admin;

import com.team11.server.pojo.P_C_S_T_information;
import com.team11.server.service.admin.Admin_SelS_InP_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_SelS_InP_Controller {
    @Autowired
    private Admin_SelS_InP_Service admin_selS_inP_service;
    @ApiOperation("根据项目组id查询学生")
    @PostMapping("/selS_inP")
    public List<P_C_S_T_information> selS_inP(Integer pId){
        return admin_selS_inP_service.selS_inP(pId);
    }
}
